<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>四川工科院智能出行系统</title>
<link type="text/css" rel="stylesheet" 
href="${pageContext.request.contextPath }/css/user.css" />
</head>
<body class="login_bg">
    <section class="loginBox">
        <header class="loginHeader">
            <h1>四川工科院智能出行系统</h1>
        </header>
        <section class="loginCont">
	        <form class="loginForm" action="/user?name=login"  name="actionForm" id="actionForm" 
	         method="post" >
	         
				<div class="info">${error}</div>
				<div class="inputbox">
                    <label for="userCode">用户名：</label>
					<input type="text" class="input-text" id="userCode" name="userCode" placeholder="请输入用户名" required/>
				</div>	
				<div class="inputbox">
                    <label for="userPassword">密码：</label>
                    <input type="password" id="userPassword" name="password" placeholder="请输入密码" required/>
                </div>	
				<div class="subBtn">
                    <input type="submit" value="登录"/>
                    <input onclick="register()" type="reset" value="注册" />
                </div>	
			</form>
        </section>
    </section>
</body>
<!-- 使用js  ajax  请求 -->
<script type="text/javascript">
function register(){
	//使用js实现页面跳转
	//使用js的bom操作
	window.location.href="/register.jsp";
}



</script>



</html>